package com.apress.javaee6.chapter03;

import java.io.Serializable;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: News
 *
 */
@Entity

public class News implements Serializable {

	@EmbeddedId
	private NewsId id;
	private String content;
	
	private static final long serialVersionUID = 1L;

	public News() {
		super();
	}

	public NewsId getId() {
		return id;
	}

	public void setId(NewsId id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
   
	
}
